//
//  CheckoutModel.h
//  ChunLaiZhuangClient
//
//  Created by xielihui on 16/4/12.
//  Copyright © 2016年 CLZ. All rights reserved.
//

#import "BaseModel.h"
@class CheckoutSubModel;
@interface CheckoutModel : BaseModel
@property(nonatomic, strong) CheckoutSubModel *data;
@end
@class SimpleAddressModel;
@class ShippingMethodModel;
@class PaymentMethodModel;
@class SimpleCouponModel;
@interface CheckoutSubModel : BaseModel
@property(nonatomic, strong) SimpleAddressModel *shipping_address;
@property(nonatomic, strong) ShippingMethodModel *shipping_method;
@property(nonatomic, strong) NSArray *shipping_methods;
@property(nonatomic, strong) PaymentMethodModel *payment_method;
@property(nonatomic, strong) NSArray *payment_methods;
@property(nonatomic, strong) SimpleCouponModel *coupon;
@property(nonatomic, copy) NSString *total; //实际支付
@property(nonatomic,strong)NSArray *totals;
@property(nonatomic,copy)NSString *available_coupons;//可用优惠券
@property(nonatomic, copy) NSString *subtotal; //应付
@end

@interface SimpleAddressModel:BaseModel
@property(nonatomic, copy) NSString *firstname;
@property(nonatomic, copy) NSString *address_id;
@property(nonatomic, copy) NSString *address;
@property(nonatomic, copy) NSString *telephone;
@end

@interface ShippingMethodModel :BaseModel
@property(nonatomic, copy) NSString *code;
@property(nonatomic, copy) NSString *title;
@property(nonatomic, copy) NSString *cost;
@end
@interface PaymentMethodModel :BaseModel
@property(nonatomic, copy) NSString *code;
@property(nonatomic, copy) NSString *icon;
@property(nonatomic, copy) NSString *title;
@property(nonatomic, assign) BOOL selected;
@end
@interface SimpleCouponModel : BaseModel
@property(nonatomic, copy) NSString *name;
@property(nonatomic, copy) NSString *code;
@property(nonatomic, copy) NSString *amount;

@end


@interface TotalsDetailModel : BaseModel
@property(nonatomic, copy) NSString *title;
@property(nonatomic, copy) NSString *code;
@property(nonatomic, copy) NSString *text;
@end